package com.netease.nim.avchatkit;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/9/5.
 */

public class AVChatUserData implements Serializable{
    String image;
    String nickname;
    String level;
    String member_id;
    String anchor_id;
    boolean isauth;
    int price;
    long freetime;
    boolean isDate;
    long dateTime;
    String appoint_id;

    public AVChatUserData() {
    }
    public AVChatUserData(String member_id,String anchor_id, String image, String nickname, String level, boolean isauth, int price,long freetime) {
        this.member_id = member_id;
        this.anchor_id = anchor_id;
        this.image = image;
        this.nickname = nickname;
        this.level = level;
        this.isauth = isauth;
        this.price = price;
        this.freetime = freetime;
    }

    public AVChatUserData(String member_id,String anchor_id, String image, String nickname, String level, boolean isauth, int price,long freetime,boolean isDate,long dateTime,String appoint_id) {
        this.member_id = member_id;
        this.anchor_id = anchor_id;
        this.image = image;
        this.nickname = nickname;
        this.level = level;
        this.isauth = isauth;
        this.price = price;
        this.freetime = freetime;
        this.isDate = isDate;
        this.dateTime = dateTime;
        this.appoint_id = appoint_id;
    }

    public String getMember_id() {
        return member_id;
    }

    public void setMember_id(String member_id) {
        this.member_id = member_id;
    }

    public String getAnchor_id() {
        return anchor_id;
    }

    public void setAnchor_id(String anchor_id) {
        this.anchor_id = anchor_id;
    }

    public boolean isIsauth() {
        return isauth;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLevel() {
        if(TextUtils.isEmpty(level))
            return "0";
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public boolean getIsauth() {
        return isauth;
    }

    public void setIsauth(boolean isauth) {
        this.isauth = isauth;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public long getFreetime() {
        return freetime;
    }

    public void setFreetime(long freetime) {
        this.freetime = freetime;
    }

    public boolean isDate() {
        return isDate;
    }

    public void setDate(boolean date) {
        isDate = date;
    }

    public long getDateTime() {
        return dateTime;
    }

    public void setDateTime(long dateTime) {
        this.dateTime = dateTime;
    }

    public String getAppoint_id() {
        return appoint_id;
    }

    public void setAppoint_id(String appoint_id) {
        this.appoint_id = appoint_id;
    }
}
